main.bin : S3C2440.s  main.c
	arm-none-eabi-gcc -c -o S3C2440.o S3C2440.S
	arm-none-eabi-gcc -c -o main.o main.c
	arm-none-eabi-ld -Ttext 0x00000000 S3C2440.o main.o -o main.elf
	arm-none-eabi-objcopy -O binary -S main.elf main.bin
	arm-none-eabi-objdump -D -m arm  main.elf > main.dis
clean:
	rm -f main.dis main.bin main.elf *.o
